package com.lmj.controller;

import com.lmj.dto.DataResponse;
import com.lmj.service.HandDictionaryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/handDictionary")
public class HandDictionaryController {

    @Autowired
    private HandDictionaryService handDictionaryService;

    // 获取手语词典
    @RequestMapping("/get_dics")
    public DataResponse getHandDictionarys(@RequestBody String request) {
        return handDictionaryService.getHandDictionarys(request);
    }

    // 根据id获取手语词典
    @RequestMapping("/get_dic")
    public DataResponse getHandDictionary(@RequestBody String request) {
        return handDictionaryService.getHandDictionary(request);
    }

}
